
Ext.define('Avrio.model.Session', {
    extend: 'Ext.data.Model',
// <editor-fold defaultstate="collapsed" desc="fields">
    fields: [
        { name: 'id',                                           type: 'int' },
        { name: 'version',                                      type: 'bigint', defaultValue: 0 },
        { name: 'session_type_code',                            type: 'string' },
        { name: 'status_code',                                  type: 'string' },
        { name: 'session_start_time',                           type: 'date', dateFormat: 'Y-m-d 00:00:00' },
        { name: 'session_end_time',                             type: 'date', dateFormat: 'Y-m-d 00:00:00' },
        { name: 'confidentiality_code',                         type: 'string', defaultValue: 'N' },
        { name: 'priority_code',                                type: 'string' },
        { name: 'reason',                                       type: 'string' },
        { name: 'scheduled_by_user_id',                         type: 'int' },
        { name: 'patient_id',                                   type: 'int' },
        { name: 'referring_practitioner_id',                    type: 'int' },
        { name: 'referring_practitioner_participation_role',    type: 'string' },
        { name: 'referring_practitioner_session_time',          type: 'int' },
        { name: 'referring_practitioner_pretime',               type: 'int' },
        { name: 'referring_practitioner_posttime',              type: 'int' },
        { name: 'consultant1_id',                               type: 'int' },
        { name: 'consultant2_id',                               type: 'int' },
        { name: 'consultant1_participation_role',               type: 'string' },
        { name: 'consultant2_participation_role',               type: 'string' },
        { name: 'consultant1_session_time',                     type: 'int' },
        { name: 'consultant1_pretime',                          type: 'int' },
        { name: 'consultant1_posttime',                         type: 'int' },
        { name: 'consultant2_session_time',                     type: 'int' },
        { name: 'consultant2_pretime',                          type: 'int' },
        { name: 'consultant2_posttime',                         type: 'int' },
        { name: 'cause_of_session_id',                          type: 'int' },
        { name: 'caused_by_session_id',                         type: 'int' },
        { name: 'responsible_organization_id',                  type: 'int' },
        { name: 'language_code',                                type: 'string' },
        { name: 'bit_rate',                                     type: 'int' }
    ],
// </editor-fold>
    idProperty: 'id'
});
